﻿
using System;
using System.Xml.Serialization;
namespace PivotData
{
    /// <summary>
    /// Info for a particular image
    /// </summary>
    [XmlInclude(typeof(FacetString))]
    [Serializable]
    public class ImageInfo
    {
        public int Id;
        public string Name;
        public string Extension;

        /// <summary>
        /// Facets associated with the image
        /// </summary>
        public FacetAbsBase[] Facets = null;

        /// <summary>
        /// Shallow copy ctor
        /// </summary>
        /// <param name="i"></param>
        public ImageInfo(ImageInfo i)
        {
            Id = i.Id;
            Name = i.Name;
            Extension = i.Extension;
            Facets = i.Facets;
        }

        /// <summary>
        /// Default ctor
        /// </summary>
        public ImageInfo()
        {
            Id = 0;
            Name = "";
            Extension = "";
            Facets = null;
        }
    }
}